#!/bin/sh
# Job yaml can send below ENVIRONMENT VARIABLES to me
# - runtime
# END ENVIRONMENT VARIABLES

## nuttcp is a network performance measurement tool intended for use
## by network and system managers.

. $LKP_SRC/lib/reproduce-log.sh

cd $BENCHMARK_ROOT/nuttcp || die "no $BENCHMARK_ROOT/nuttcp"

[ -n "$runtime" ] || runtime=300

[ -n "$direct_server_ips" ] && server=$direct_server_ips
[ -z "$server" ] && server=127.0.0.1
server=${server%% *}

log_cmd ./nuttcp -T $runtime $server
